<%@ page import="employee.Employee" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: 王宇航
  Date: 2023/3/11
  Time: 19:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Detail_Employee_Information</title>
</head>
<body>
<h1 style="color: aqua">DetailEmployeeInformationPage</h1>
<table border="1">
  <tr>
    <th>id</th>
    <th>name</th>
    <th>password</th>
    <th>age</th>
    <th>gender</th>
  </tr>
  <%
    Employee employee = (Employee) session.getAttribute("employee");
    if (employee != null){
        out.println("<tr>");
        out.println("<td>"+employee.getId()+"</td>");
        out.println("<td>"+employee.getName()+"</td>");
        out.println("<td>"+employee.getPassword()+"</td>");
        out.println("<td>"+employee.getAge()+"</td>");
        out.println("<td>"+employee.getGender()+"</td>");
        out.println("</tr>");
    }else {
      out.println("Nothing is employee");
    }
  %>
</table>
<a href="admin.jsp">back to admin</a>
</body>
</html>
